package com.study.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author stephen
 * @create 2018-12-21 23:00
 * @since 1.0.0
 */
@RestController
public class DemoController {

    @GetMapping(value="/demo")
    public ModelAndView courseClickCountStat(){
        //跟templates文件夹下的demo.html名字一样，返回这个界面
        return new ModelAndView("demo");
    }
}
